package fr.umlv.m2.jee.pmlv.persistence.planning.dao;

import fr.umlv.m2.jee.pmlv.framework.dao.IDAO;
import fr.umlv.m2.jee.pmlv.persistence.planning.AbstractEvent;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * In this interface you can add methods which represents
 * request with a n event that we need in the application.
 * @author jenseric
 *
 */
public interface IAbstractEventDAO extends IDAO<Long, AbstractEvent>{
    List<AbstractEvent> findByWeekAndByProfessorUidAndByYear(GregorianCalendar start, String uid, int year);
    List<AbstractEvent> findByWeekAndByStudentUidAndByYear(GregorianCalendar start, String uid, int year);
    List<AbstractEvent> findByWeekAndBySecretaryUidAndByYear(GregorianCalendar start, String uid, int year);
}
